package JavaDesign.report_2.t_1;

/**
 * @author zouran
 * createDate：2023/9/27  1:35
 */
public class WeekWorker extends Employee {
    int week;
    double weekSalary;

    public WeekWorker(int week, double weekSalary) {
        this.week = week;
        this.weekSalary = weekSalary;
    }

    @Override
    double earnings() {
        return week * weekSalary;
    }
}
